﻿@model UserViewModel
@{
    ViewData["Menu"] = 9;
    ViewData["Title"] = "人员列表";
}

<main class="ftdms-layout-content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>账号</th>
                                        <th>单位名称</th>
                                        <th>上级</th>
                                        <th>姓名</th>
                                        <th>电话</th>
                                        <th>邮箱</th>
                                        <th>注册时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @if (Model.UserList.Any())
                                    {
                                        foreach (var item in Model.UserList)
                                        {
                                            <tr>
                                                <td>@(item.id)</td>
                                                <td>@(item.username)</td>
                                                <td>@(item.danwei)</td>
                                                <td>@(item.pname)</td>
                                                <td>@(item.xingming)</td>
                                                <td>@(item.dianhua)</td>
                                                <td>@(item.email)</td>
                                                <td>@(item.zhucesj.ToString("yyyy-MM-dd HH:mm:ss"))</td>
                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs btn-default submenuitem" title="修改" href="@Url.Action("Form","User",new { id = item.id })" data-toggle="tooltip"><i class="ftsucai-edit-2"></i></a>
                                                        <a class="btn btn-xs btn-default submenuitem del" title="删除" href="javascript:if(confirm('确实要删除该内容吗?'))location='@Url.Action("Del","User", new { id = item.id })'" data-toggle="tooltip"><i class="ftsucai-del"></i></a>
                                                    </div>
                                                </td>
                                            </tr>
                                        }
                                    }
                                </tbody>
                            </table>
                        </div>
                        <!-- 分页条码 -->
                        <pagination total-count="Model.ListCount"></pagination>
                        <!--End 分页条码 -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>


